package com.smfx.yxt.service;

import java.util.List;
import java.util.Map;

import com.smfx.yxt.model.AttachmentList;
import com.smfx.yxt.page.Page;

public interface IAttachmentListService {

	int insertSelective(AttachmentList record);

    int updateByPrimaryKeySelective(AttachmentList record);
    
    List<AttachmentList> selectByPage(Page<AttachmentList> page);
    
    /**
     * 绑定relationId生成相册
     * @param record
     * @return
     */
    int updateRelationId(AttachmentList record);
    
    /**
     * 查询待处理文件数量
     * @param teacherId
     * @return
     */
    int selectHandingCountByTeacherId(AttachmentList record);
    
    /**
	 * 查询老师上传的预附件列表
	 * @param record
	 * @return
	 */
	List<AttachmentList> selectHandingList(AttachmentList record);
	
    /**
     * 根据参数查询文件数量
     * @param record
     * @return
     */
	int selectCountByParam(AttachmentList record);
	
	/**
	 * 根据关联关系查询附件列表
	 * @param map
	 * @return
	 */
	List<AttachmentList> queryAttachmentListByRelationId(Map<String, Object> map);
	
	List<AttachmentList> queryAttachmentListByRole(Map<String, Object> map);
}
